# CMakeList.txt: Visual Studio Test 2024 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 1.0)

# 如果支持，请为 MSVC 编译器启用热重载。
if (POLICY CMP0141)
  cmake_policy(SET CMP0141 NEW)
  set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project ("Visual Studio Test 2024")

# 将源代码添加到此项目的可执行文件。
add_executable (CMakeTarget "Visual Studio Test 2024.cpp" "Visual Studio Test 2024.h" "Basic_headerfile.h")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.h")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.hpp")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.idl")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.c")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.grammar")
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/out/*.Inc")


if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET CMakeTarget PROPERTY CXX_STANDARD 20)
endif()

# TODO: 如有需要，请添加测试并安装目标。
install(TARGETS MyProject DESTINATION bin)
